import { DEL_TODO, TOGGLE_IS_DONE, TOGGLE_TYPE } from './actionTypes';

export function delTodoCreator(id) {
  return { type: DEL_TODO, payload: id };
}
export function toggleTodoCreator(id) {
  return { type: TOGGLE_IS_DONE, payload: id };
}

export function toggleTypeCreator(type) {
  return {
    type: TOGGLE_TYPE,
    payload: type,
  };
}
